package cn.kgc.jdktest.demo2;

/**
 * @Author:yaozhaobao
 * @Description:TODO
 * @version:1.0
 */
public class Test {

    public static void main(String[] args) {
       new Thread(new Runnable() {
            @Override
            public void run() {
                //3-将要执行的代码放到run方法中
                for(int i = 1;i<=100;i++){
                    System.out.println(Thread.currentThread().getName()+":"+i);
                }
            }
        }).start();






    }

}
